///*
// * To change this template, choose Tools | Templates
// * and open the template in the editor.
// */
//package com.kidIcarus.resources.xml.input;
//
//import com.kidIcarus.xml.effect.Effect;
//import com.kidIcarus.xml.effect.Effects;
//import com.kidIcarus.xml.effect.Name;
//import java.io.BufferedReader;
//import java.io.FileReader;
//import java.io.IOException;
//import java.util.List;
//
///**
// *
// * @author squarezty
// */
//public class NewClass {
//
//    public static void main(String[] args) {
//        Effects effects = new Effects();
//        List<Effect> effectList = effects.getEffect();
//
//        try {
//            BufferedReader br = new BufferedReader(new FileReader("src/com/kidIcarus/xml/input/effectTemp.txt"));
//            for (int i = 0; i < 12; i++) {
//                Effect effect = new Effect();
//                Name name = new Name();
//
//                name.setEn(br.readLine());
//
//                effect.setName(name);
//                effect.setId(i + 1);
//
//                effectList.add(effect);
//
////            name.setCn("中文");
////            name.setEn("Englisg");
////            name.setJp("撃剣");
//            }
//        } catch (IOException ioe) {
//            java.util.logging.Logger.getLogger("global").log(java.util.logging.Level.SEVERE, null, ioe); //NOI18N
//
//        }
//
//        try {
//            javax.xml.bind.JAXBContext jaxbCtx = javax.xml.bind.JAXBContext.newInstance(effects.getClass().getPackage().getName());
//            javax.xml.bind.Marshaller marshaller = jaxbCtx.createMarshaller();
//            marshaller.setProperty(javax.xml.bind.Marshaller.JAXB_ENCODING, "UTF-8"); //NOI18N
//            marshaller.setProperty(javax.xml.bind.Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
//            marshaller.marshal(effects, System.out);
//
//            javax.xml.bind.Unmarshaller unmarshaller = jaxbCtx.createUnmarshaller();
////            unmarshaller.unmarshal(file);
//
//        } catch (javax.xml.bind.JAXBException ex) {
//            // XXXTODO Handle exception
//            java.util.logging.Logger.getLogger("global").log(java.util.logging.Level.SEVERE, null, ex); //NOI18N
//        }
//    }
//}